package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 水稳拌合站数据业务对象 n_cement2_data
 *
 * @author zyb
 * @date 2023-09-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NCement2DataBo extends BaseEntity {

    /**
     * 数据主键
     */
    @NotBlank(message = "数据主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 机构code
     */
    @NotBlank(message = "机构code不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseCode;

    /**
     * 项目主键
     */
    @NotBlank(message = "项目主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectId;

    /**
     * 拌合站主键
     */
    @NotBlank(message = "拌合站主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stationCode;

    /**
     * 配方编号
     */
    @NotBlank(message = "配方编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String matchCode;

    /**
     * 出料时间
     */
    @NotNull(message = "出料时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date dischargeTime;

    /**
     * 盘重
     */
    @NotNull(message = "盘重不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal batchWeight;

    /**
     * 原数据标识
     */
    @NotBlank(message = "原数据标识不能为空", groups = { AddGroup.class, EditGroup.class })
    private String originalId;

    /**
     * 入库时间
     */
    @NotNull(message = "入库时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date insertTime;


}
